<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>角色维护</title>
<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
	<div id="frameWrapper" class="frameWrapper">
	<div class="titlebar">
		<p>当前位置：角色维护<span>/</span>角色查看</p>
	</div>
	<div class="searchbar">
	</div>
	<div id="table-wrap">
		<table border="1">
			<thead>
				<tr>
					<th><input type="checkbox">全选</th>
					<th>编号</th>
					<th>姓名</th>
					<th>职称</th>
					<th>账号</th>
					<!-- <th>操作</th> -->
				</tr>
			</thead>
			<tbody>
			<c:forEach items="${paging.list }" var="role" varStatus="v">
				<tr>
					<td><input type="checkbox">选择</td>
					<td>${v.count }</td>
					<td>${role.username }</td>
					<td>${role.role_name }</td>
					<td>${role.account }</td>
					<!--  <td class="do">
							<a href="" target="iframe" class="btn btn-add"><i class="fa fa-eye"></i>&nbsp;查看</a>
							<a class="btn btn-del"><i class="fa fa-trash"></i>删除</a>
							<a href="class_updateclass.html" class="btn btn-update"><i class="fa fa-pencil"></i>修改</a>
						</td>
					-->
				</tr>
			</c:forEach>
			</tbody>
		</table>
		<div id="paging">
			<a class="btn btn-getionfo" href="${pageContext.request.contextPath }/RoleServlet?command=check&currentPage=1&roleId=${roleId}" target="iframe">首页</a>
			<a class="btn btn-getionfo" href="${pageContext.request.contextPath }/RoleServlet?command=check&currentPage=${paging.currentPage-1<1?1:paging.currentPage-1 }&roleId=${roleId}" target="iframe">上一页</a>
			&nbsp;&nbsp;&nbsp;&nbsp;
			共<span>${paging.pageTotal } </span>页
			&nbsp;&nbsp;&nbsp;&nbsp;
			当前第<span>${paging.currentPage }</span>页
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a class="btn btn-getionfo" href="${pageContext.request.contextPath }/RoleServlet?command=check&currentPage=${paging.currentPage+1>paging.pageTotal?paging.pageTotal:paging.currentPage+1 }&roleId=${roleId}" target="iframe">下一页</a>
			<a class="btn btn-getionfo" href="${pageContext.request.contextPath }/RoleServlet?command=check&currentPage=${paging.pageTotal}&roleId=${roleId}" target="iframe">末页</a>
		</div>
	</div>
</div>
</body>
</html>